Previous Book Contents Book Index Next

Inside Macintosh: /
QuickDraw 3D RAVE / QuickDraw 3D RAVE Reference
QuickDraw 3D RAVE Routines / Public Draw Context Methods


TQADrawLine

A drawing engine must define a method to draw a line between two points.

typedef void (*TQADrawLine) (
                             const TQADrawContext *drawContext, 
                             const TQAVGouraud *v0, 
                             const TQAVGouraud *v1);
drawContext
A draw context.
v0
A Gouraud vertex.
v1
A Gouraud vertex.
DESCRIPTION
Your TQADrawLine function should draw the line specified by the v0 and v1 parameters to the draw context specified by the drawContext parameter. The size of the line is determined by the kQATag_Width state variable of the draw context. If the specified vertices have different colors, the line color is interpolated smoothly between the two vertex colors.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
28 AUG 1996